const webdriver = require('selenium-webdriver');

const { email, password } = require('./config');

const browser = new webdriver.Builder().forBrowser('chrome').build();

const login = require('./login')(browser);
const getCourseInfo = require('./getCourseInfo')(browser);
const getLectureInfo = require('./getLectureInfo')(browser);

login(email, password)
    .then(() => getCourseInfo())
    .then(courseInfo => getLectureInfo(courseInfo));
